import React, { Component } from 'react'
import Dialog from './Dialog'
import { Button } from 'antd';


export default class DialogPage extends Component {
    constructor(props) {
        super(props)

        this.state = {
            showDialog: false
        }
    }
    render() {
        const { showDialog } = this.state
        return (
            <div>
                <h3>DialogPage</h3>
                <Button type="primary" onClick={() => { this.setState({ showDialog: !showDialog }) }}>toggle</Button>
                {showDialog && <Dialog />}
            </div>
        )
    }
}
